import { defineStore } from 'pinia'
import { ref , reactive } from 'vue'

export const useAdminStore = defineStore('admin',{
    state : () =>  {
        return {
            adminInfo : ref<object>(),
            collapse : ref<boolean>(false)
        }
    },
    getters : {

    },
    actions:{
        getAdminInfo(adminInfo:object){
            this.adminInfo = adminInfo
        },
        isCollapse(){
            this.collapse = !this.collapse
        }
    }
    

    
})